package com.star.common.orm.typehandlers.type;

import cn.hutool.core.collection.CollUtil;

import java.util.ArrayList;
import java.util.List;
/**
 * Double转集合
 *
 * @author zhouhengzhe
 */
public class DoubleList extends ArrayList<Double> {
    public static final DoubleList EMPTY_LIST = new DoubleList();

    public static DoubleList convert(List<Double> list) {
        if (CollUtil.isEmpty(list)) {
            return DoubleList.EMPTY_LIST;
        }
        DoubleList doubleList = new DoubleList();
        doubleList.addAll(list);
        return doubleList;
    }

    public static List<Double> convert(DoubleList doubleList) {
        return doubleList;
    }
}
